package spring.framework.util;

/**
 * @author pengzh
 * @class ClassUtils
 * @since 2021-09-23
 */
public class ClassUtils {

    public static ClassLoader getDefaultClassLoader() {
        ClassLoader classLoader = null;
        try {
            classLoader = Thread.currentThread().getContextClassLoader();
        } catch (Exception e) {

        }

        if (null == classLoader) {
            classLoader = ClassUtils.class.getClassLoader();
        }
        return classLoader;
    }

}
